import request from '@/utils/request'

// 查询抖音罗盘—人群构成列表
export function listBiDyCrowdGroup(query) {
  return request({
    url: '/sale/BiDyCrowdGroup/list',
    method: 'get',
    params: query
  })
}

// 查询抖音罗盘—人群构成详细
export function getBiDyCrowdGroup(id) {
  return request({
    url: '/sale/BiDyCrowdGroup/' + id,
    method: 'get'
  })
}

// 新增抖音罗盘—人群构成
export function addBiDyCrowdGroup(data) {
  return request({
    url: '/sale/BiDyCrowdGroup',
    method: 'post',
    data: data
  })
}

// 修改抖音罗盘—人群构成
export function updateBiDyCrowdGroup(data) {
  return request({
    url: '/sale/BiDyCrowdGroup',
    method: 'put',
    data: data
  })
}

// 删除抖音罗盘—人群构成
export function delBiDyCrowdGroup(id) {
  return request({
    url: '/sale/BiDyCrowdGroup/' + id,
    method: 'delete'
  })
}
